from django.conf.urls import url
from shopping.views import Index_html, Get_register_html, Get_login_html, \
    Get_user_center_info_html, Get_cart_html, Get_user_center_order, Get_user_center_site_html,\
    Get_detail_html,Get_list_html,load_image,image,search


urlpatterns = [

    # url(r'^index/', Index_html.as_view(), name="shopping_index"),
    # url(r'^register/', get_register_html, name="register"),
    # url(r'^login/', get_login_html, name="login"),
    # url(r'^user_center_info/', get_user_center_info_html, name="user_center_info"),
    # url(r'^car/', get_cart_html, name="car"),
    # url(r'^user_center_order/', get_user_center_order, name="user_center_order"),
    # url(r'^get_user_center_site/', get_user_center_site_html, name="get_user_center_site"),
    # url(r'^index1', Index_html.as_view(), name="index"),
    url(r'^index/', Index_html.as_view(), name="shopping_index"),
    url(r'^register_n/', Get_register_html.as_view(), name="register"),
    url(r'^login_n/', Get_login_html.as_view(), name="login"),
    url(r'^user_center_info_n/', Get_user_center_info_html.as_view(), name="user_center_info"),
    url(r'^car_n/', Get_cart_html.as_view(), name="car"),
    url(r'^user_center_order_n/', Get_user_center_order.as_view(), name="user_center_order"),
    url(r'^get_user_center_site_n/', Get_user_center_site_html.as_view(), name="get_user_center_site"),
    url(r'^get_detail_html_n/(?P<pk>\d+)$', Get_detail_html.as_view(), name="get_detail_html"),
    url(r'^list/(?P<pk>\d+)$', Get_list_html.as_view(), name="get_list"),
    url(r'^search/$', search, name='search'),
    # url(r'^uploadimage/', load_image, name='upload'),
    # url(r'^image', image, name="download"),

]
